package com.qingcloud.adminbackend.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.qingcloud.adminbackend.base.AjaxResult;
import com.qingcloud.adminbackend.entity.source.DataSourceDatabaseDto;

import java.util.Collection;
import java.util.List;

/**
 * <p>
 * 服务类
 * </p>
 *
 * @author wangjinnan
 * @since 2021-03-17
 */
public interface IDatasourceDatabaseService extends IService<DataSourceDatabaseDto> {

    AjaxResult add(DataSourceDatabaseDto dataSourceDatabase);

    AjaxResult updateDataSourceDatabase(DataSourceDatabaseDto dataSourceDatabase);

    AjaxResult deleteByDsIds(String dsIds);

    AjaxResult copyByDsId(String dsId);

    AjaxResult<List<DataSourceDatabaseDto>> findByDsIds(String dsIds);

    AjaxResult<List<DataSourceDatabaseDto>> findByNameOrProjectId(String dsName, Collection<String> pidSet);

    AjaxResult test(Integer dsId);
}
